<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>Perpuseru | Reporting Management System</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<link href="<?php echo base_url()?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
	<link href="<?php echo base_url()?>assets/css/metro.css" rel="stylesheet" />
	<link href="<?php echo base_url()?>assets/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link href="<?php echo base_url()?>assets/bootstrap-fileupload/bootstrap-fileupload.css" rel="stylesheet" />
	<link href="<?php echo base_url()?>assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
	<link href="<?php echo base_url()?>assets/css/style.css" rel="stylesheet" />
	<link href="<?php echo base_url()?>assets/css/style_responsive.css" rel="stylesheet" />
	<link href="<?php echo base_url()?>assets/css/style_default.css" rel="stylesheet" id="style_color" />
	<link href="<?php echo base_url()?>assets/fancybox/source/jquery.fancybox.css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/bootstrap-datepicker/css/datepicker.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/uniform/css/uniform.default.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/chosen-bootstrap/chosen/chosen.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/bootstrap-wysihtml5/bootstrap-wysihtml5.css" />
	<link rel="stylesheet" href="<?php echo base_url()?>assets/data-tables/DT_bootstrap.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/uniform/css/uniform.default.css" />
	<!--<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>assets/css/component.css" />-->
	<link rel="shortcut icon" href="<?php echo base_url()?>assets/img/favicon.ico" />
	<style>
		.table th {
		   text-align: center;
		   vertical-align: middle;   
		}
		.table td {
		   text-align: center;
		   vertical-align: middle;   
		}
	</style>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="fixed-top">
			<div class="row-fluid">
				<div class="span12">
					<!-- BEGIN EXAMPLE TABLE PORTLET-->
					<div class="portlet box blue">
						<div class="portlet-title">
							<h4><i class="icon-edit"></i>Rekapitulasi Peserta Pelatihan</h4>
							<!--<div class="tools" >
								<a href="javascript:;" class="reload"></a>
							</div>-->
														
							<div class="actions" style="padding-right: 0px">
								<a href="<?php echo base_url()?>report/rekapTrainingParticipant" class="btn green"><i class="icon-print"></i>PDF</a>
						<!--		<a href="#" class="btn green"><i class="icon-tasks"></i> Pdf</a>
								<a href="#" class="btn green"><i class="icon-envelope"></i> Excel</a>-->								
							</div>
							
						</div>
						<div class="portlet-body">
							<?php //$this->load->view('searchBar', $searchBar);?>
							<table class="table table-striped table-hover table-bordered" >
								<thead>
									<tr>
								    <th rowspan="2">No</th>
								    <th rowspan="2" >Jenis Pelatihan</th>
								    <th rowspan="2">Jumlah Laporan</th>
								    <th rowspan="2">Jumlah Peserta</th>   
								    <th colspan="2">Staff</th>
								    <th colspan="2">Non Staff</th>
								    <!--<th colspan="2">Lainnya</th>--> 
								    <th colspan="2">Total</th>  
								    <th rowspan="2">Lainnya</th>
								    
								  </tr>
								  <tr>
								    <th>Laki-Laki</th>
								    <th>Perempuan</th>
								    <th>Laki-Laki</th>
								    <th>Perempuan</th>
								    <th>Laki-Laki</th>
								    <th>Perempuan</th>
								    <!--<th>Laki-Laki</th>
								    <th>Perempuan</th>-->
								  </tr>
								</thead>
								<tbody>
								<?php
									$i=1; 
									foreach ($reports as $row){ ?>
									<tr >
										<td ><?php echo $i;?></td>
										<td style="text-align: left"><?php echo $row['jenisTraining']?></td>
										<td><?php echo $row['jumlahBerkas']?></td>
										<td><?php if ($row['staffLaki'] + $row['nonStaffLaki'] + $row['staffPr'] + $row['nonStaffPr']> 0) echo $row['staffLaki'] + $row['nonStaffLaki'] + $row['staffPr'] + $row['nonStaffPr']; else echo '-';?></td> 
										<td><?php if ($row['staffLaki'] > 0) echo $row['staffLaki']; else echo '-';?></td>										
										<td><?php if ($row['staffPr'] > 0) echo $row['staffPr']; else echo '-'; ?></td>
										<td><?php if ($row['nonStaffLaki'] > 0) echo $row['nonStaffLaki']; else echo '-';?></td>
										<td><?php if ($row['nonStaffPr'] > 0) echo $row['nonStaffPr']; else echo '-';?></td>
										<td><?php if ($row['staffLaki'] + $row['nonStaffLaki'] > 0) echo $row['staffLaki'] + $row['nonStaffLaki']; else echo '-';?></td>
										<td><?php if ($row['staffPr'] + $row['nonStaffPr']> 0) echo $row['staffPr'] + $row['nonStaffPr']; else echo '-';?></td>
										<td><?php if ($row['lainnyaLaki'] > 0) echo $row['lainnyaLaki'] + $row['lainnyaPr']; else echo '-';?></td>
										<!--<td><?php if ($row['lainnyaPr'] > 0) echo $row['lainnyaPr']; else echo '-';?></td>-->
									</tr>		
								<?php	$i++;} ?>
								</tbody>
							</table>
							<div class="row-fluid">
								<?php //$this->load->view('paging', $pBerkas);?>
							</div>
						</div>
					</div>
					<!-- END EXAMPLE TABLE PORTLET-->
				</div>
			</div>
			<!-- END PAGE CONTENT -->

<!-- END CONTAINER -->
</body>
</html>
